package com.example.springbootlearn.boot;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author caiji Mr. Li
 * @date 2019/11/13 22:19
 */
@ComponentScan(value="com.example.springbootlearn.boot")
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Main.class);
        System.out.println("myFirstRepository Bean是否存在： " + context.containsBean("myFirstRepository"));
        System.out.println("myThreeRepository Bean是否存在： " + context.containsBean("myThreeRepository"));
        context.close();
    }
}
